package com.fj.provider.api.service;

import com.fj.provider.api.dto.UserModel;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author fj
 * @date 2024/3/7 17:18
 */
//@FeignClient(value = "provider-application",url = "http://127.0.0.1:8080")
@FeignClient(value = "provider-application")
public interface UserService {
    @GetMapping(value = "{id}")
    UserModel getUser(@PathVariable(value = "id") Long id);
}
